<%@page import="edu.tsinghua.eea.powermanagement.data.HomeInfo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="edu.tsinghua.eea.powermanagementserver.model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
</style>
<link href="css/rf_style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div style="background: #FFFFFF;">
		<div id="xsnazzy">
			<b class="xtop">
				<b class="xb1"></b><b class="xb2 gray_back"></b><b class="xb3 gray_back"></b>
				<b class="xb4 gray_back"></b><b class="xb5 gray_back"></b>
			</b>
			<div class="xboxcontent">
				<div class="top_title">
					用户信息设置
				</div>
				<jsp:include page="server_message.jsp"></jsp:include>
				<div class='inner_title'>
					修改密码
				</div>
				<div class='fleft wfill'>
					<div class='next_level'>
						<form id='upwd' method='post' action='dbcon'>
							<input name='action' value='<%=DBInterface.ACTION_CHANGE_PASSWORD %>' type='hidden' />
							<div>
								<div class='pwd_label'>请输入原密码：</div>
								<div class='pwd'>
									<input name='old_pwd' type='password' class='password' />
								</div>
								<div class='clear'></div>
							</div>
							<div>
								<div class='pwd_label'>请输入新密码：</div>
								<div class='pwd'>
									<input name='new_pwd1' type='password' class='password' />
								</div>
								<div class='clear'></div>
							</div>
							<div>
								<div class='pwd_label'>请再次输入新密码：</div>
								<div class='pwd'>
									<input name='new_pwd2' type='password' class='password' />
								</div>
								<div class='clear'></div>
							</div>
							<div>
								<input type='submit' value='修改密码' class='smaller_font' />
							</div>
						</form>
					</div>
				</div>
				<div class='fleft inner_title'>
					修改用户信息
				</div>
				<div class='fleft wfill'>
					<div class='next_level'>
						<form id='uinfo' method='post' action='dbcon'>
							<% HomeInfo hi = (HomeInfo)request.getSession().getAttribute("HomeInfo"); %>
							<input name='action' value='<%=DBInterface.ACTION_UPDATE_USER_INFO %>' type='hidden' />
							<div>
								<div class='pwd_label'>电话号码：</div>
								<div class='pwd'>
									<input name='phone' value='<%=(hi==null)?"":hi.tel %>' type='text' class='password' />
								</div>
								<div class='clear'></div>
							</div>
							<div>
								<div class='pwd_label'>手机号码：</div>
								<div class='pwd'>
									<input name='cellphone' value='<%=(hi==null)?"":hi.cell %>' type='text' class='password' />
								</div>
								<div class='clear'></div>
							</div>
							<div>
								<div class='pwd_label'>地址：</div>
								<div class='pwd'>
									<input name='address' value='<%=(hi==null)?"":hi.address %>' type='text' class='password' />
								</div>
								<div class='clear'></div>
							</div>
							<div>
								<input type='submit' value='修改用户信息' class='smaller_font' />
							</div>
						</form>
					</div>
				</div>
				<div class='clear'></div>
			</div>
		</div>
		<b class="xbottom">
			<b class="xb5"></b><b class="xb5"></b><b class="xb4"></b>
			<b class="xb3"></b><b class="xb2"></b><b class="xb1"></b>
		</b>
	</div>
</body>
</html>